package cn.edu.scau.cmi.zengdefeng.Factory;

import cn.edu.scau.cmi.zengdefeng.simpleFactoryMethod.Meat;

public interface MeatFactory {
	Meat getMeat();
	public static MeatFactory getFactory(String meatFactoryType) {
		MeatFactory factory =null;
		switch (meatFactoryType) {
		case "BeefFactory":
			factory = new BeefFactory();
			break;
		case "PorkFactory":
			factory = new PorkFactory();
			break;
		case "ChickenFactory":
			factory = new ChickenFactory();
			break;
		}
		return factory;
		
	}

}
